import request from '@/utils/request'

// 权限简单列表
export function permissionsSimpleList() {
  return request({
    url: '/permissions/simple',
    method: 'get'
  })
}
// 权限列表
export function permissionsList(params) {
  return request({
    url: '/permissions',
    method: 'get',
    params
  })
}
// 权限详情
export function permissions(id) {
  return request({
    url: '/permissions/' + id,
    method: 'get'
  })
}
// 权限修改
export function editPermissions(data) {
  return request({
    url: '/permissions/' + data.id,
    method: 'put',
    data
  })
}
// 权限删除
export function delPermissions(id) {
  return request({
    url: '/permissions/' + id,
    method: 'delete'
  })
}
// 权限添加
export function addPermissions(data) {
  return request({
    url: '/permissions',
    method: 'post',
    data
  })
}
